package com.kai.steering.data.service.entity.po;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kai.steering.data.service.entity.domainObject.WarehouseTestDO;
import lombok.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName(value = "warehouse_test")

public class WarehouseTest {
    private String warehouseId;
    private String testId;
    private String testName;
    @TableId(type = IdType.AUTO)
    private String id;

    public WarehouseTest(String warehouseId,String testId){
        this.warehouseId=warehouseId;
        this.testId=testId;
    }
    public WarehouseTest(WarehouseTestDO warehouseTestDO){
        convertWarehouseTest(warehouseTestDO);
    }
    public WarehouseTest convertWarehouseTest(WarehouseTestDO warehouseTestDO){
        BeanUtil.copyProperties(warehouseTestDO, this);
        return this;
    }
}
